Handle overflow when computing char display width (Bug#9496).
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Feb 2012 19:24:22 +0000 (11:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Feb 2012 19:24:22 +0000 (11:24 -0800)
commitde14753345c808b4eef2cdc16252dfb247683204
tree28ecb3404019fdc4fdb48096a93e66314c9def1b
parentfee6d220d73651a0fefec8e623a9aa05890dc468
Handle overflow when computing char display width (Bug#9496).

* character.c (char_width): Return EMACS_INT, not int.
(char_width, c_string_width): Check for overflow when
computing the width; this is possible now that individual
characters can have unbounded width.  Problem introduced
by merge from Emacs 23 on 2012-01-19.
src/ChangeLog
src/character.c